<%@ Page Language="C#" MasterPageFile="~/Regular.master" AutoEventWireup="true" CodeFile="Search.aspx.cs"
    Inherits="Search" Title="Search" EnableViewState="false" EnableViewStateMac="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="Server">
    <asp:Repeater ID="searchResultsRepeater" runat="server">
        <HeaderTemplate>
            <div class="searchResultsBox">
                <div class="searchResultsHeader">
                    Search Results:</div>
                You searched for <i>
                    <%= SearchKey %>
                </i>
                <br />
        </HeaderTemplate>
        <ItemTemplate>
            <div class="searchResult">
                <div class="pollTitle">
                    <a href="/PollMain.aspx?id=<%# DataBinder.Eval(Container.DataItem,"Id") %>">
                        <%# DataBinder.Eval(Container.DataItem,"Title") %>
                    </a>
                </div>
                <%# DataBinder.Eval(Container.DataItem,"Description") %>
                <br />
                In:
                <%# DataBinder.Eval(Container.DataItem, "SimpleCategoryName")%>
                <br />
            </div>
        </ItemTemplate>
        <FooterTemplate>
            </div>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
